import request from '@/utils/request';

export async function emailSave(params) {
  return request('/esApi/emlMsg/insertEmlMsg', {
    method: 'POST',
    body: params,
  });
}
export async function emailUpdate(params) {
  return request('/esApi/emlMsg/updateEmlMsg', {
    method: 'POST',
    body: params,
  });
}
export async function getEmailDetail(params) {
  return request('/esApi/emlMsg/getEmlMsgAndAssc', {
    method: 'POST',
    body: params,
  });
}

// 入职告知
export async function notifySave(params) {
  return request('/esApi/entryInformApi/insert', {
    method: 'POST',
    body: params,
  });
}
export async function notifyUpdate(params) {
  return request('/esApi/entryInformApi/update', {
    method: 'POST',
    body: params,
  });
}
export async function getNotifyDetail(params) {
  return request('/esApi/entryInformApi/get', {
    method: 'POST',
    body: params,
  });
}
